package cn.juque.systemservice.mapper;

import cn.juque.systemservice.domain.MenuInfoDO;
import cn.juque.systemservice.entity.MenuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>菜单</li>
 * </ul>
 * @date 2023-01-06 15:09:48
 **/
@Mapper
public interface MenuInfoMapper extends BaseMapper<MenuInfo> {

    /**
     * 分页查询
     *
     * @param page     : page
     * @param menuInfo : menuInfo
     * @return List<MenuInfo>
     */
    List<MenuInfoDO> queryInfoList(Page<MenuInfoDO> page, @Param("ew") MenuInfoDO menuInfo);

    /**
     * 查询
     *
     * @param menuInfo : menuInfo
     * @return List<MenuInfo>
     */
    List<MenuInfoDO> queryInfoList(@Param("ew") MenuInfoDO menuInfo);
}
